package com.urea.system.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.urea.common.annotation.Excel;
import com.urea.common.core.domain.BaseEntity;

import java.time.LocalDateTime;

/**
 * 车队用户关系对象 t_fleet_user
 * 
 * @author liuzd
 * @date 2023-08-01
 */
@TableName("t_fleet_user")
@Data
@ToString
public class FleetUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    @ApiModelProperty( "用户id")
    private Long uid;

    /** 车队id */
    @Excel(name = "车队id")
    @ApiModelProperty( "车队id")
    private Long fleetId;

    /** 是否为队长;0否，1是 */
    @Excel(name = "是否为队长;0否，1是")
    @ApiModelProperty( "是否为队长;0否，1是")
    private String isMaster;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty( "创建时间")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdTime;
}
